def add(a,b):
    a+=b
    return a

class Company:
    def __init__(self,name,staffs=[]):
        self.name=name
        self.staffs=staffs

    def add(self,staff_name):
        self.staffs.append(staff_name)

    def remove(self,staff_name):
        self.staffs.remove(staff_name)

if __name__ == '__main__':
    a=1
    b=2
    c=add(a,b)
    print('数字:','c:',c,'b:',b,'a:',a)#数字: c: 3 b: 2 a: 1

    a=[1,2]
    b=[3,4]
    c=add(a,b)
    print('列表:','c:',c,'b:',b,'a:',a)#列表: c: [1, 2, 3, 4] b: [3, 4] a: [1, 2, 3, 4]

    a=(1,2)
    b=(3,4)
    c=add(a,b)
    print('元组:','c:',c,'b:',b,'a:',a)#元组: c: (1, 2, 3, 4) b: (3, 4) a: (1, 2)

    com1=Company('com',['bobby1','bobby2'])
    com1.add('bobby3')
    com1.remove('bobby1')
    print('com1_staffs:',com1.staffs)

    com2=Company('com2')
    com2.add('bobby1')
    print('com2_staffs:',com2.staffs)

    com3 = Company('com2')
    com3.add('bobby5')
    print('com3_staffs:', com3.staffs)
    print('com2_staffs:', com2.staffs)
    print(Company.__init__.__defaults__)




